package com.bawei.lib_storage.room.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * 收藏实体类
 */
@Entity(tableName = "b_favorite")
data class FavoriteEntity(
    @PrimaryKey(autoGenerate = true)
    val id: Long = 0,
    
    @ColumnInfo
    val userId: String, // 用户ID
    
    @ColumnInfo
    val videoId: String, // 视频ID
    
    @ColumnInfo
    val title: String, // 视频标题
    
    @ColumnInfo
    val primaryImg: String, // 视频封面
    
    @ColumnInfo
    val content: String, // 视频描述
    
    @ColumnInfo
    val authorImg: String, // 作者头像
    
    @ColumnInfo
    val authorName: String, // 作者名称
    
    @ColumnInfo
    val videoPath: String, // 视频路径
    
    @ColumnInfo
    val channelId: String, // 频道ID
    
    @ColumnInfo
    val createTime: Long = System.currentTimeMillis() // 收藏时间
) 